package edu.ahut.corejava2.v2;

public class InterfaceDemo {
    public static void main(String[] args) {
        Shape2D[] shapes = new Shape2D[]{
                new Circle(10), new Triangle(3, 4, 5)
        };
        for (Shape2D shape : shapes) {
            shape.show();
        }

    }


}
